package com.czb.controller;

import com.czb.service.CarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by BIN on 2018-05-31.
 */
@RestController
public class CarController {
    @Autowired
    private CarService carService;

    @RequestMapping("/show")
    public String show(@RequestParam String name){
        return "ribbon " + carService.show(name);
    }
}
